package com.iwhalecloud.citybrain.flow.platform.manager.domain.model.task;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author cheng.huaxing
 * @date 2019-03-06
 */
public class TaskInfoVo {
    @NotNull
    private String taskId;

    @NotNull
    private String processInstanceId;

    private String taskName;

    private String taskType;

    private Date createTime;

    private String assignee;

    private TaskMultiInstanceVo multiInstance;

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    public String getProcessInstanceId() {
        return processInstanceId;
    }

    public void setProcessInstanceId(String processInstanceId) {
        this.processInstanceId = processInstanceId;
    }

    public String getTaskName() {
        return taskName;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }

    public String getTaskType() {
        return taskType;
    }

    public void setTaskType(String taskType) {
        this.taskType = taskType;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getAssignee() {
        return assignee;
    }

    public void setAssignee(String assignee) {
        this.assignee = assignee;
    }

    public TaskMultiInstanceVo getMultiInstance() {
        return multiInstance;
    }

    public void setMultiInstance(TaskMultiInstanceVo multiInstance) {
        this.multiInstance = multiInstance;
    }

    @Override
    public String toString() {
        return "TaskInfoVo{" +
                "taskId='" + taskId + '\'' +
                ", processInstanceId='" + processInstanceId + '\'' +
                ", taskName='" + taskName + '\'' +
                ", taskType='" + taskType + '\'' +
                ", createTime=" + createTime +
                ", assignee='" + assignee + '\'' +
                ", multiInstance=" + multiInstance +
                '}';
    }
}
